package com.oot2d.util;

//Manages flags that can be checked by scripts
public class Flags {
    private static byte[] flags;

    public static final int OPENING_CUTSCENE = 0;
    public static final int ENTERED_KOKIRI = 1;

    public static void init()
    {
        flags = new byte[128];
        for (int i = 0; i < flags.length; i++)
            flags[i] = -1;
    }

    public static boolean check(int i)
    {
        return (flags[i] > -1);
    }

    public static byte get(int i)
    {
        return flags[i];
    }

    public static byte[] getFlags()
    {
        return flags;
    }

    public static void test()
    {
        System.out.println(flags[0]);
        System.out.println(ENTERED_KOKIRI);
        System.out.println("derp");
    }
}
